package com.yunti.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yunti.business.mapper.BaseSubItemMapper;
import com.yunti.business.domain.BaseSubItem;
import com.yunti.business.service.IBaseSubItemService;

/**
 * 分数项Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-20
 */
@Service
public class BaseSubItemServiceImpl implements IBaseSubItemService 
{
    @Autowired
    private BaseSubItemMapper baseSubItemMapper;

    /**
     * 查询分数项
     * 
     * @param id 分数项主键
     * @return 分数项
     */
    @Override
    public BaseSubItem selectBaseSubItemById(Long id)
    {
        return baseSubItemMapper.selectBaseSubItemById(id);
    }

    /**
     * 查询分数项列表
     * 
     * @param baseSubItem 分数项
     * @return 分数项
     */
    @Override
    public List<BaseSubItem> selectBaseSubItemList(BaseSubItem baseSubItem)
    {
        return baseSubItemMapper.selectBaseSubItemList(baseSubItem);
    }

    /**
     * 新增分数项
     * 
     * @param baseSubItem 分数项
     * @return 结果
     */
    @Override
    public int insertBaseSubItem(BaseSubItem baseSubItem)
    {
        return baseSubItemMapper.insertBaseSubItem(baseSubItem);
    }

    /**
     * 修改分数项
     * 
     * @param baseSubItem 分数项
     * @return 结果
     */
    @Override
    public int updateBaseSubItem(BaseSubItem baseSubItem)
    {
        return baseSubItemMapper.updateBaseSubItem(baseSubItem);
    }

    /**
     * 批量删除分数项
     * 
     * @param ids 需要删除的分数项主键
     * @return 结果
     */
    @Override
    public int deleteBaseSubItemByIds(Long[] ids)
    {
        return baseSubItemMapper.deleteBaseSubItemByIds(ids);
    }

    /**
     * 删除分数项信息
     * 
     * @param id 分数项主键
     * @return 结果
     */
    @Override
    public int deleteBaseSubItemById(Long id)
    {
        return baseSubItemMapper.deleteBaseSubItemById(id);
    }
}
